
# Register your models here.
from django.contrib import admin
from .models import BlogCategory,Blog,BlogComment

class BlogCategoryAdmin(admin.ModelAdmin):
    list_display =['name']
class BlogAdmin(admin.ModelAdmin):
    list_display =['title','content','pub time','category','author']
class BlogCommentAdmin(admin.ModelAdmin):
    list_display =['content','author','pub time','blog']


admin.site.register(BlogCategory, BlogCategoryAdmin)
admin.register(Blog,BlogAdmin)
admin.register(BlogComment,BlogCommentAdmin)

